//导入第三方包
let express = require('express')
// let { expressjwt } = require('express-jwt')
//实例化express
let app = express()



//静态托管文件夹
app.use(express.static('static'))
//处理pos请求的中间件
app.use( express.json() );
app.use( express.urlencoded({extended:false}) );



//导入子路由
var userRouter = require('./router/userRouter')
//
app.use( '/user' , userRouter)


//端口监听
app.listen(9090,()=>{
    console.log('服务端运行在: http://localhost:9090');
})